/**************************************************************
 * HTTPPrint.h
 * Provides callback headers and resolution for user's custom
 * HTTP Application.
 * 
 * This file is automatically generated by the MPFS Utility
 * ALL MODIFICATIONS WILL BE OVERWRITTEN BY THE MPFS GENERATOR
 **************************************************************/

#ifndef __HTTPPRINT_H
#define __HTTPPRINT_H

#include "TCPIP Stack/TCPIP.h"

#if defined(STACK_USE_HTTP2_SERVER)

extern HTTP_CONN curHTTP;
extern HTTP_STUB httpStubs[MAX_HTTP_CONNECTIONS];
extern BYTE curHTTPID;

void HTTPPrint(DWORD callbackID);
void HTTPPrint_ajax(void);
void HTTPPrint_log(void);
void HTTPPrint_io(void);
void HTTPPrint_io_ajax(void);
void HTTPPrint_config(void);
void HTTPPrint_strg(void);
void HTTPPrint_user(void);
void HTTPPrint_power(void);
void HTTPPrint_pow_i(void);
void HTTPPrint_net_par(void);
void HTTPPrint_clock(void);
void HTTPPrint_timer(void);
void HTTPPrint_sv(void);
void HTTPPrint_mail(void);
void HTTPPrint_pow_d(void);
void HTTPPrint_wol(void);
void HTTPPrint_sv1(void);
void HTTPPrint_ka(void);
void HTTPPrint_start(void);
void HTTPPrint_ka1(void);

void HTTPPrint(DWORD callbackID)
{
	switch(callbackID)
	{
        case 0x0000000e:
			HTTPPrint_ajax();
			break;
        case 0x00000043:
			HTTPPrint_log();
			break;
        case 0x0000004d:
			HTTPPrint_io();
			break;
        case 0x0000004e:
			HTTPPrint_io_ajax();
			break;
        case 0x00000053:
			HTTPPrint_config();
			break;
        case 0x00000062:
			HTTPPrint_strg();
			break;
        case 0x000000c4:
			HTTPPrint_user();
			break;
        case 0x000000e3:
			HTTPPrint_power();
			break;
        case 0x000000e6:
			HTTPPrint_pow_i();
			break;
        case 0x000000e8:
			HTTPPrint_net_par();
			break;
        case 0x000000e9:
			HTTPPrint_clock();
			break;
        case 0x000000ea:
			HTTPPrint_timer();
			break;
        case 0x000000eb:
			HTTPPrint_sv();
			break;
        case 0x000000ec:
			HTTPPrint_mail();
			break;
        case 0x000000ee:
			HTTPPrint_pow_d();
			break;
        case 0x000000ef:
			HTTPPrint_wol();
			break;
        case 0x000000f0:
			HTTPPrint_sv1();
			break;
        case 0x000000f3:
			HTTPPrint_ka();
			break;
        case 0x000000f4:
			HTTPPrint_start();
			break;
        case 0x000000f5:
			HTTPPrint_ka1();
			break;
		default:
			// Output notification for undefined values
			TCPPutROMArray(sktHTTP, (ROM BYTE*)"!DEF", 4);
	}

	return;
}

void HTTPPrint_(void)
{
	TCPPut(sktHTTP, '~');
	return;
}

#endif

#endif
